package com.tcm.prescribe.api.service;

import com.base.core.pager.PageBean;
import com.tcm.prescribe.api.domain.dto.PrescribeDTO;


public interface PrescribeService {

    Long save(PrescribeDTO prescribeDto);

    void update(PrescribeDTO prescribeDto);


    PrescribeDTO findById(Long planId);


    void deleteLogicById(Long id);

    void deleteById(Long id);

    /**
     * 更新购药状态
     * @param id
     */
    void updateIsUse(Long id);

    /**
     * 更新审核通过状态
     * @param id
     */
    void verifyPassed(Long id);

    /**
     * 审核驳回
     * @param id
     * @param remark
     */
    void verifyRefused(Long id, String remark);

    PageBean<PrescribeDTO> listUserPrescribePage(Long userId, Long start, Long pagesize);

    PageBean<PrescribeDTO> listDoctorPrescribePage(Long doctorId, Long start, Long pagesize);

    String sendWebService(Long id);
}
